<#if packageStyle == "service">
package ${bussPackage}.${entityPackage}.entity;
<#else>
package ${definePackage};
</#if>

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.unistc.core.common.entity.IdEntity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;
import lombok.Getter;
import lombok.Setter;


/**   
 * @Title: Entity
 * @Description: ${ftl_description}
 * @author root
 * @date ${.now}
 * @version V1.0   
 *
 */
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Getter
@Setter
@Entity
@Table(name = "${tableName}", schema = "")
public class ${entityName} extends IdEntity implements java.io.Serializable {
	<#list columns as po>
	/**${po.comments}*/
	<#if po.code ?capitalize != pk_table_Id ? capitalize>
	
	@Column(name ="${fieldMeta[po.code]}",nullable=<#if po.isNull == 'Y'>true<#else>false</#if><#if po.pointLength != 0>,scale=${po.pointLength}</#if><#if po.type!='java.sql.Blob'><#if po.length !=0>,length=${po.length?c}</#if></#if>)
	<#--update-start--Author:luobaoli  Date:20150609 for：将数据库中blob类型对应为byte[]-->
	private <#if po.type=='java.sql.Blob'>byte[]<#else>${po.type}</#if> ${po.code};
	<#--update-end--Author:luobaoli  Date:20150609 for：将数据库中blob类型对应为byte[]-->
	
	</#if>
	</#list>
}
